<template>
    <div>
      <div v-text="msg" class="dv1"></div>
      <div v-html="msg1" class="dv2"></div>
    </div>
</template>

<script setup> 
const msg  = "<span>这是v-text指令的文本内容</span>"
const msg1 = "<b>这是v-html指令的文本内容</b>"
</script>

<style scoped>
.dv1{
    color: red;
}
.dv2{
    color: rgb(41, 2,23);
}
</style>